projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f19b343
)
* lisp/mouse.el (context-menu-map): Select clicked window (bug#53249).
author
Juri Linkov
<juri@linkov.net>
Sat, 15 Jan 2022 18:37:15 +0000
(20:37 +0200)
committer
Juri Linkov
<juri@linkov.net>
Sat, 15 Jan 2022 18:37:15 +0000
(20:37 +0200)
lisp/mouse.el
patch
|
blob
|
history
diff --git
a/lisp/mouse.el
b/lisp/mouse.el
index 82424e3e24496b62e5354cd656575ad245a18acc..502683d3d1e4bb50818f1c2085667d1002769a6c 100644
(file)
--- a/
lisp/mouse.el
+++ b/
lisp/mouse.el
@@
-324,6
+324,8
@@
the function `context-menu-filter-function'."
(fun (mouse-posn-property (event-start click)
'context-menu-function)))
+ (select-window (posn-window (event-start click)))
+
(if (functionp fun)
(setq menu (funcall fun menu click))
(run-hook-wrapped 'context-menu-functions